<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div id="app">
    {{title}}
    <input-number></input-number>
</div>
<script src="vue.js"></script>
<script>
    Vue.component("input-number",{
        template:' <div> <input type="text"> \n' +
        '        <button>+</button>\n' +
        '        <button>-</button></div>'
    })
    new Vue({
        el:"#app",
        data:function () {
            return{
                title:''
            }
        }
    })
</script>
</body>
</html>
